﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace API_lib.Exceptions
{
    class PluginException : Exception
    {
        /// <summary>
        /// Default constructor
        /// </summary>
        public PluginException(): base()  {}

        /// <summary>
        /// Set the given message as the exception's message
        /// </summary>
        /// <param name="msg">Exception's message</param>
        public PluginException(String msg) : base(msg) {}

        /// <summary>
        /// Format the exception's message as:
        /// </summary>
        /// <param name="msg">Exception's message</param>
        /// <param name="causedBy">Other exception object that caused this exception (if any)</param>
        public PluginException(String msg, Exception causedBy) : base(msg, causedBy) { }
    }
}
